export type Action = "confirm" | "cancel" | "close";
export type Sign = "warning" | "error";
export type TextType = "text" | "textarea";

export interface MessageBoxInputValidator {
  (value: string): boolean | string;
}

export interface Props {
  message: string;
  title: string;
  option: {
    type: Sign;
    inputPlaceholder?: string;
    inputPattern?: RegExp;
    inputValue?: string;
    inputErrorMessage?: string;
    inputValidator?: MessageBoxInputValidator;
    action?: Action;
    inputType?: TextType;
  };
  showCancel?: boolean;
  showInput?: boolean;
  boxType: "alert" | "confirm" | "prompt";
}
